﻿@model Web.ViewModels.RegisterModel
<div class="lightbox" id="registerOrLogInBox">
    	<a href="#" class="lightbox_close">Закрыть</a>	
			<div>Пожалуйста, зарегистрируйтесь</div>
		@using (Html.BeginForm<UserController>(x => x.Register(null), FormMethod.Post, new { @class = "ajaxForm" }))
  {
		<fieldset>
			@Html.LabelFor(x => x.DisplayName, "Отображаемое имя")
			@Html.TextBoxFor(x => x.DisplayName, new { placeholder = "Александр Пушкин", @class = "requiredField" })
            @Html.ValidationMessageFor(x => x.DisplayName)

			<br />
			@Html.LabelFor(x => x.Email, "E-mail")
			@Html.TextBoxFor(x => x.Email, new { placeholder = "alepush", @class = "requiredField" })
            @Html.ValidationMessageFor(x => x.Email)

			<br />
			@Html.Label("Password", "Пароль")
			@Html.PasswordFor(x => x.Password, new { placeholder = "придумайте пароль", @class = "requiredField" })
			@Html.ValidationMessageFor(x => x.Password)
		</fieldset>
		<div id="errorMessage" class="errorMessage"></div>
		@Html.SubmitButton(null, "Отправить")
  }
  или <a href="#" class="showLightBox_link" rel="loginBox">Войдите</a>
	</div>